﻿using System;
using System.Collections.Generic;
using System.Text;

namespace XP.Utilities.Utility
{
    /// <summary>
    /// 电话号码工具类。
    /// </summary>
    public class PhoneNumberUtil
    {
        public static string GetCorrectNumber(string phoneNumber)
        {
            if (phoneNumber.Length == 12 && phoneNumber.StartsWith("01") 
                && phoneNumber.StartsWith("010") == false)
                return phoneNumber.Substring(1);
            else
                return phoneNumber;
        }
    }
}
